@extends('admin.layout')
@section('content')
	      <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                内容详情
               
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i>主页</a></li>
                <li><a href="#">内容详情</a></li>
                
            </ol>
        </section>

        <!-- Main content -->
        <section class="content" target='here'>
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            
                        </div><!-- /.box-header -->
                        <!-- form start -->
                        <form role="form" action="{{ url('/admin/goods/look') }}" method='post'>
                            {{ csrf_field() }}
                            <input type='hidden' name='id' value="{{ $data -> id }}">
                       <!--      @if(session('info'))

                            <div class="alert-danger alert-dismissable">
                            		<button aria-hidden="true" data-dismiss="alert" class='close' type='button'>x</button>
    								<h4><i class='icon fa fa-ban'></i> 提示!</h4>
    								<p>
    									{{ session('info') }}
    								</p>
    						</div>	
    						@endif	


                        	@if(count($errors) > 0)
                        	<div class="alert-danger alert-dismissable">
                        		<button aria-hidden="true" data-dismiss="alert" class='close' type='button'>x</button>
								<h4><i class='icon fa fa-ban'></i> 警告!</h4>
								<ul>
									@foreach ($errors->all() as $error)
										<li>{{ $error }}</li>
									@endforeach		
								</ul>
                        	</div>
                        	@endif -->
                        	


                            <div class="box-body">
                               <!--  <div class="form-group">
                                    <label for="exampleInputFile">原始头部图片</label>
                                    <img src="{{ url('/uploads') }}/{{ $data -> img_head }}">
                                </div> -->
                                <div class="form-group">
                                    <label for="exampleInputFile">头部图片</label><br>
                                    <img width='300px' src="{{ url('./uploads/') }}/{{ $data -> img_head }}">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">标题</label>
                                    <input disabled='disabled' name='title' value="{{ $data -> title }}" type="text" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入标题">
                                </div>
                                  <div class="form-group">
                                    <label>内容分类</label>
                                    <select disabled='disabled' name='cate_id' class="form-control">
                                            <option value='0'>根分类</option>
                                           @foreach($allData as $cate)
                                           <option disabled='disabled' value='{{ $cate -> id }}'>{{ $cate -> name }}</option>
                                           @endforeach
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">标签</label>
                                    <input disabled='disabled' name='label' value="{{ $data -> title }}" type="text" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入标签">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputEmail1">摘要</label>
                                    <input disabled='disabled' name='abstract' value="{{ $data -> title }}" type="text" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入摘要">
                                </div>
                                <div class="form-group">
                                    <label for="exampleInputName1">内容详情</label>
                                    <!-- 加载编辑器的容器 -->
                                        <script id="container" name="detail" style='width:100%;height:400px' type="text/plain">{!! $data -> detail !!}</script>
                                        <!-- 配置文件 -->
                                        <script type="text/javascript" src="{{ url('/adm/ue/ueditor.config.js') }}"></script>
                                        <!-- 编辑器源码文件 -->
                                        <script type="text/javascript" src="{{ url('/adm/ue/ueditor.all.js') }}"></script>
                                        <!-- 实例化编辑器 -->
                                        <script type="text/javascript">
                                            var ue = UE.getEditor('container');
                                        </script>


                                       
                                   
                                </div>
                               <div class="form-group">
                                    <label>状态</label>
                                    
                                            @if($data -> status == '0')
                                             审核通过
                                            @endif
                                       
                                            @if($data -> status == '1')
                                                    未审核
                                            @endif
                                                
                                   
                                </div>
                                
                               
                            </div><!-- /.box-body -->

                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">返回列表页</button>
                                
                            </div>
                        </form>
                    </div><!-- /.box -->

  
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection('content')